package org.example.springbook1.service;

import org.example.springbook1.mapper.UserInfoMapper;
import org.example.springbook1.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;


@Service
public class UserService {

   @Autowired
    private UserInfoMapper userInfoMapper;

    public UserInfo getUserInfoByName(String name) {
        return userInfoMapper.selectUserByName(name);

    }

}
